package com.campus.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.campus.common.annotation.Excel;
import com.campus.common.core.domain.BaseEntity;

/**
 * 新闻对象 news
 * 
 * @author hehe
 * @date 2025-10-22
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻编号 */
    private Long newsId;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /** 发布人姓名 */
    @Excel(name = "发布人姓名")
    private String name;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String content;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 新闻时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newsTime;

    /** 新闻类型id */
    @Excel(name = "新闻类型id")
    private Long typeId;

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }

    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setNewsTime(Date newsTime) 
    {
        this.newsTime = newsTime;
    }

    public Date getNewsTime() 
    {
        return newsTime;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("newsTitle", getNewsTitle())
            .append("name", getName())
            .append("content", getContent())
            .append("image", getImage())
            .append("newsTime", getNewsTime())
            .append("typeId", getTypeId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
